<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>比价搜索</title>
  <link rel="stylesheet" href="./css/base.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/category.css">
</head>

<body>
  <div class="mm-layout" id="aa"> 
    <!-- 头部 -->
    <div class="mm-header">
      <div class="hd-logo">
        <span>
          <img src="./images/header_logo.png" alt="">
        </span>
        <a href="#">
          <img src="./images/header_app.png" alt="">
        </a>
      </div>
      <div class="hd-search">
        <form class="hd-form">
          <input type="search" class="search" name="search" placeholder="请输入你想比价的商品">
          <button type="button" class="search-btn">搜索</button>
        </form>
      </div>
    </div>

    <!-- 主体 -->
    <div class="mm-main ">
      <div class="category clearfix">
        <!-- 一级分类 -->
        <ul class="category-title clearfix">
          <li>
            <a href="#">大 家 电 <span class="fr"></span></a>
            <!-- 二级分类 -->
            <ul class="category-content">
              <li><a href="#">电视</a></li>
              <li><a href="#">空调</a></li>
              <li><a href="#">影院</a></li>
              <li><a href="#">冰箱</a></li>
            </ul>
          </li>
        </ul>
        <ul class="category-title">
          <li>
            <a href="#">手机数码<span class="fr"></span></a>
            <!-- 二级导航 -->
            <ul class="category-content">
              <li><a href="#">手机</a></li>
              <li><a href="#">数码相机</a></li>
              <li><a href="#">数码摄像机</a></li>
              <li><a href="#">音箱</a></li>
            </ul>
          </li>
        </ul>
      </div>
    </div>

    <!-- 底部 -->
    <div class="mm-footer">
      <div class="foot-top">
        <a href="#">登录</a>
        <a href="#">注册</a>
        <a href="#aa" class="upward"><img src="./images/top.jpg" alt="">返回顶部</a>
      </div>
      <div class="foot-bottom">
        <p>
          <a href="#">手机APP下载</a>
          <span>慢慢买手机版</span>
          -- 掌上比价平台
        </p>
        <p>m.manmanbuy.com</p>
      </div>
    </div>

  </div>

  <!-- 一级分类模板 -->
  <script type="text/html" id="tmp-cate">
      <!-- 一级分类 -->
      <ul class="category-title clearfix">
          {{ each result v i }}  
        <li>
            <a href="#" class="title-hide" data-id={{ v.titleId}}>{{ v.title }}<span class="fr"></span></a>
            <div class="category-content">
              <ul class="clearfix">
      
              </ul>
            </div>
        </li>
        {{ /each }} 
      </ul>
  </script>

  <!-- 二级分类模板 -->
  <script type="text/html" id="tmp-cate2">
    <!-- 二级分类 -->
    <ul class="category-content clearfix">
    {{ each result v i }}
        <li><a href="productlist.html?categoryid={{ v.categoryId }}&category={{ v.category }}">{{ v.category}}</a></li>
    {{ /each }}
    </ul>
  </script>




  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./lib/jquery/jquery.min.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/category.js"></script>
</body>

</html>